<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head>
	<link type="text/css" rel="stylesheet" th:href="@{/layui/css/layui.css}">
    <link th:href="@{/lib/font-awesome/css/font-awesome.css}" rel="stylesheet" />
    <link th:href="@{/lib/sideshow/css/normalize.css}" rel="stylesheet" />
    <link th:href="@{/lib/bootstraps/css/bootstrap.css}" rel="stylesheet" />
    <link th:href="@{/lib/bootstraps/css/bootstrap-table/bootstrap-table.min.css}" rel="stylesheet" />
    <link th:href="@{/lib/jsTree/css/style.min.css}" rel="stylesheet" />
    <link th:href="@{/lib/jqTreeGrid/css/jquery.treegrid.css}" rel="stylesheet" />
    
    <script type="text/javascript" th:src="@{/lib/bootstraps/js/jquery-3.2.1.min.js}"></script>
    <script type="text/javascript" th:src="@{/lib/bootstraps/js/bootstrap.js}"></script>
    <script type="text/javascript" th:src="@{/lib/bootstraps/js/bootstrap-table/bootstrap-table.min.js}"></script>
    <script type="text/javascript" th:src="@{/lib/bootstraps/js/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}"></script>
    <script type="text/javascript" th:src="@{/lib/jqTreeGrid/js/jquery.treegrid.min.js}"></script>
    <script type="text/javascript" th:src="@{/lib/jqTreeGrid/js/jquery.treegrid.bootstrap3.js}"></script>
    <script type="text/javascript" th:src="@{/lib/jqTreeGrid/js/jquery.treegrid.extension.js}"></script>
    <script type="text/javascript" th:src="@{/lib/jsTree/js/jstree.min.js}"></script>
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="layui-form column-content-detail" id="signupForm">
							<input id="id"  name="id" type="hidden"  th:value="${role.id}">
							<input id="menuIds" name="menuIds" type="hidden">
							<div class="form-group" style="margin-top: 10px">
								<label class="col-sm-3 control-label">当前角色：</label>
								<div class="col-sm-8">
									<input class="form-control" type="text" th:value="${role.roleName}" disabled="disabled">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">权限：</label>
								<div class="col-sm-8">
									<div id="menuTree"></div>
								</div>
							</div>

							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<input type="button" class="btn btn-primary" value="提交" onclick="update()"/>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript" th:src="@{/layui/layui.js}"></script>
	<script type="text/javascript" th:src="@{/js/menu/examineAssignRole.js}"></script>
</body>

</html>
